#include"Heap.h"

void test01()
{
	int a[] = { 4,2,8,1,5,6,9,7 };
	HP hp;
	HeapInit(&hp);
	for (size_t i = 0; i < sizeof(a) / sizeof(a[0]); i++)
	{
		HeapPush(&hp, a[i]);

	}
	while (!HeapEmpty(&hp))
	{
		printf("%d ", HeapTop(&hp));
		HeapPop(&hp);

	}
}


int main()
{
	test01();
	return 0;
}